package com.chaodev.base.dao;

import com.chaodev.base.dto.ResourceListDto;
import com.chaodev.base.model.ResourceList;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ResourceListDao {

    /**
     * 新增三类清单
     * @param resourceList
     * @return
     */
    Integer insertResourceList(ResourceList resourceList);

    /**
     * 修改三类清单
     * @param resourceList
     * @return
     */
    Integer updateResourceList(ResourceList resourceList);

    /**
     * 删除三类清单
     * @param id
     * @return
     */
    Integer deleteResourceList(@Param(value = "id") String id);

    /**
     * 查询三类清单列表
     * @param resourceListDto
     * @return
     */
    List<ResourceList> selectResourceLists(ResourceListDto resourceListDto);

    /**
     * id查询单条三类清单
     * @param id
     * @return
     */
    ResourceList selectResourceListById(@Param(value = "id") String id);

    /**
     * 更新访问量
     * @param resourceList
     */
    void updateVisitNum(ResourceList resourceList);
}
